package com.example.origin.demo.demo.singleton;

public enum  EnumSingleton {
    INSTANCE("aaa");

    private String name;

    EnumSingleton(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public static EnumSingleton getInstance(){
        return INSTANCE;
    }

    public static void main(String[] args) {
        EnumSingleton instance = EnumSingleton.getInstance();
        System.out.println(instance.getName());
    }
}